package cn.edu.guet.service.lnc.impl;

import cn.edu.guet.bean.lnc.*;
import cn.edu.guet.mapper.lnc.PageMapper;
import cn.edu.guet.service.lnc.IPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PageServiceImpl implements IPageService {

    @Autowired
    private PageMapper pageMapper;

    @Override
    public String viewPage(String userid) {
        return pageMapper.viewPage(userid);
    }

    @Override
    public List<Post_lnc> displayLastestPost() {
        return pageMapper.displayLastestPost();
    }

    @Override
    public List<Post_lnc> displayHottestPost() {
        return pageMapper.displayHottestPost();
    }

    @Override
    public List<Dgroup_lnc> displayDgroup() {
        return pageMapper.displayDgroup();
    }

    @Override
    public List<PostType> displayPostType() {
        return pageMapper.displayPostType();
    }

    @Override
    public int displayNumOfPost(String tid) {
        return pageMapper.displayNumOfPost(tid);
    }

    @Override
    public List<PostForSearch> displayResult(String s) {
        return pageMapper.displayResult(s);
    }

    @Override
    public Users_lnc viewUser(String userid) {
        return pageMapper.viewUser(userid);
    }

    @Override
    public int viewInfo(String userid) {
        return pageMapper.viewInfo(userid);
    }
}
